<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Vue实训系统</title>
    <script src="vue.js"></script>
</head>
<body>
    <div id='app'>
        <input type="text" v-model="username">
        </div>
        <div id='app1'>
        <input type="text" v-model="password">
        </div>
    <div>
        <button @click="click">登录</button>
        <button @click="Onclick">注册</button> 
    </div>
    <script>
        var vm=new Vue({
     el:'#app',
     data:{
         username:'请输入账号'
     },
    })
     var vm1=new Vue({
     el:'#app1',
     data:{
         password:'请输入密码'
     },
     methods:{
     click(){
         console.log("登录成功")
     },
     Onclick(){
         console.log("注册成功")
     }
     }
 })
</script>
</body>
</html>